package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;

import javax.servlet.http.HttpServletRequest;

/**
 * @ClassName : WechatAlipayFeign
 * @Author : Lenovo
 * @Date: 2021/7/23 11:15
 * @Description :
 */
@FeignClient(url = Connect.XSX_URL,name = "xsx")
public interface WechatAlipayFeign {
    @PostMapping("/wechat/alipayment/*/processmerge")
    String presellProcessMerge(@RequestParam("jsonObject") JSONObject jsonObject,@RequestParam("request") HttpServletRequest request,@RequestParam("attr") RedirectAttributes attr);
     @PostMapping("/wechat/alipayment/*/process")
    String presellProcess(@RequestParam("jsonObject") JSONObject jsonObject,@RequestParam("request") HttpServletRequest request,@RequestParam("attr") RedirectAttributes attr);
    @PostMapping("/wechat/alipayment/*/topay")
    String onlinePaymentDirect(@RequestParam("jsonObject")JSONObject jsonObject);
    @PostMapping("/wechat/alipayment/*/callbackurl")
    String directReturnUrl(@RequestParam("request")HttpServletRequest request);
    @PostMapping("/wechat/alipayment/*/notifyurlmerge")
    String directNotifyUrl(@RequestParam("request")HttpServletRequest request);
    @PostMapping("/wechat/alipayment/*/notifyurl")
    String directNotifyUrlMerge(@RequestParam("request")HttpServletRequest request);
    @GetMapping("/wechat/alipayment/*/notifyurlcs")
    String ceishi();
}
